﻿using System.ComponentModel.DataAnnotations;
using EPiServer.Personalization.VisitorGroups;
using EPiServer.Web.Mvc.VisitorGroups;

namespace SocialPack.VisitorGroups.Facebook.Gender
{
    public class GenderModel : CriterionModelBase
    {
        [DojoWidget(
        SelectionFactoryType = typeof(EnumSelectionFactory),
        LabelTranslationKey = "/shell/cms/visitorgroups/criteria/gender/gendertype",
        AdditionalOptions = "{ selectOnClick: true }"),
        Required]
        public Gender Gender { get; set; }

        public override ICriterionModel Copy()
        {
            return base.ShallowCopy();
        }
    }
}